<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath }" /> 
<html>
<head lang="en">
    <meta charset="UTF-8">
    <%@include file="style.jsp" %>
    <%@include file="script.jsp" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/orderlang/distributor/css/adsense_set.css"/>
    <title>广告位设置</title>
</head>
<body>
<div id="container_1" style="height:100%">
    <div style="position: relative">
        <%@include file="header.jsp" %>
    </div>
    <div id="content" class="clearfix">
        <%@include file="left_menu.jsp" %>
        <!--内容部分-->
        <div class="right-content" style="margin:75px 20px 0 213px;position:relative;">
            <p class="brand">
                <a href="#">商品</a>><a href="#" class="now">广告位设置</a>
            </p>
            <div class="center-content" >
            <div class="fix">
                    <a class="submit">保存</a>
                    <a class="cancel">取消</a>
                </div>
                <div class="contact">
                <form action="${pageContext.request.contextPath}/adsense/insertAdvertisement" method="POST" class="banner1">
                    <div class="banner-set">
                        <div class="img">
                            <img id="imgsrc" src="${ctx}/img/adv-img_03.jpg" alt="" onclick="$('#img-upload').click()"/>
                        </div>
                        <input id="upload" class="" name="photoHref" type="hidden" value="">
                        <h5>仅支持jpg,jpeg,png,bmp格式，文件小于2M，广告图片尺寸720*288像素</h5>
                        <div class="sort clearfix select-box">
                            <span class="fl">轮播顺序</span>
                            <div class="fl">
                                <input type="text" readonly placeholder="1" name="sortNum"/>
                                <ul class="hide">
                                    <li>1</li>
                                    <li>2</li>
                                    <li>3</li>
                                </ul>
                            </div>
                        </div>
                        <div class="img-link select-box clearfix">
                            <span class="fl">链接跳转至</span>
                            <div class="chose-type fl" >
                                <input type="text" readonly placeholder="商品列表" />
                                <ul class="hide">
                                    <li>商品列表</li>
                                    <li>活动列表</li>
                                </ul>
                            </div>
                            <div class="chose-link fl">
                                <input type="text" class="show"/>
                                <input type="text" name="clickHref" style="display:none"/>
                                <ul class="hide">
                                    <li>商品1</li>
                                    <li>商品2</li>
                                    <li>商品3</li>
                                    <li>商品4</li>
                                    <li>商品5</li>
                                    <li>商品5</li>
                                    <li>商品5</li>
                                    <li>商品5</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    </form>
                    <form action="${pageContext.request.contextPath}/adsense/insertAdvertisement" method="POST" class="banner2" >
                    <div class="banner-set">
                        <div class="img">
                            <img id="imgsrc1" src="${ctx}/img/adv-img_03.jpg" alt="" onclick="$('#img-upload1').click()"/>
                        </div>
                        <input id="img-upload1" type="file"  style="display: none" onchange="ajaxFileUpload1()"/>
                        <input id="upload1" class="" name="photoHref" type="hidden" value="">
                        <h5>仅支持jpg,jpeg,png,bmp格式，文件小于2M，广告图片尺寸720*288像素</h5>
                        <div class="sort clearfix select-box">
                            <span class="fl">轮播顺序</span>
                            <div class="fl">
                                <input type="text" readonly placeholder="1"/>
                                <ul class="hide">
                                    <li>1</li>
                                    <li>2</li>
                                    <li>3</li>
                                </ul>
                            </div>
                        </div>
                        <div class="img-link select-box clearfix">
                            <span class="fl">链接跳转至</span>
                            <div class="chose-type fl" >
                                <input type="text" readonly placeholder="商品列表"/>
                                <ul class="hide">
                                    <li>商品列表</li>
                                    <li>活动列表</li>
                                </ul>
                            </div>
                            <div class="chose-link fl">
                                <input type="text" class="show"/>
                                <input type="text" name="clickHref" style="display:none"/>
                                <ul class="hide">
                                </ul>
                            </div>
                        </div>
                    </div>
                    </form>
                    <form action="${pageContext.request.contextPath}/adsense/insertAdvertisement" method="POST" class="banner3">
                    <div class="banner-set">
                        <div class="img">
                            <img id="imgsrc2" src="${ctx}/img/adv-img_03.jpg" alt="" onclick="$('#img-upload3').click()"/>
                        </div>
                        <input  type="file" id="img-upload3" style="display: none" onchange="ajaxFileUpload2()"/>
                        <input id="upload2" class="" name="photoHref" type="hidden" value="">
                        <h5>仅支持jpg,jpeg,png,bmp格式，文件小于2M，广告图片尺寸720*288像素</h5>
                        <div class="sort clearfix select-box">
                            <span class="fl">轮播顺序</span>
                            <div class="fl">
                                <input type="text" readonly placeholder="1"/>
                                <ul class="hide">
                                    <li>1</li>
                                    <li>2</li>
                                    <li>3</li>
                                </ul>
                            </div>
                        </div>
                        <div class="img-link select-box clearfix">
                            <span class="fl">链接跳转至</span>
                            <div class="chose-type fl" >
                                <input type="text" readonly placeholder="商品列表"/>
                                <ul class="hide">
                                    <li>商品列表</li>
                                    <li>活动列表</li>
                                </ul>
                            </div>
                            <div class="chose-link fl">
                                <input type="text" class="show"/>
                                <input type="text" name="clickHref" style="display:none"/>
                                <ul class="hide">
                                    <li>商品1</li>
                                    <li>商品2</li>
                                    <li>商品3</li>
                                    <li>商品4</li>
                                    <li>商品5</li>
                                    <li>商品5</li>
                                    <li>商品5</li>
                                    <li>商品5</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    </form>
                    <!-- 隐藏file标签 --> 
                        <input id="img-upload" type="file"  name="file" style="display: none" onchange="ajaxFileUpload()" /> 
						<input id="fileToUpload" style="display: none" type="file" name="upfile" onchange="ajaxFileUpload()"/>
						<!-- 隐藏file标签 -->  
						<input id="fileToUpload1" style="display: none" type="file" name="upfile" onchange="ajaxFileUpload1()"/>
						<!-- 隐藏file标签 -->  
						<input id="fileToUpload2" style="display: none" type="file" name="upfile" onchange="ajaxFileUpload2()"/>
                </div>
            </div>
        </div>
        <!--内容部分结束-->
    </div>
</div>
<script src="${pageContext.request.contextPath}/static/orderlang/distributor/js/adsense_set.js"></script>
</body>
</html>